.class public Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;
.super Lde/greenrobot/dao/AbstractDao;
.source "AnalysisModelDao.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao$Properties;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lde/greenrobot/dao/AbstractDao",
        "<",
        "Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# static fields
.field public static final TABLENAME:Ljava/lang/String; = "ANALYSIS_MODEL"


# direct methods
.method public constructor <init>(Lde/greenrobot/dao/internal/DaoConfig;)V
    .registers 2
    .param p1, "config"    # Lde/greenrobot/dao/internal/DaoConfig;

    .prologue
    .line 32
    invoke-direct {p0, p1}, Lde/greenrobot/dao/AbstractDao;-><init>(Lde/greenrobot/dao/internal/DaoConfig;)V

    .line 33
    return-void
.end method

.method public constructor <init>(Lde/greenrobot/dao/internal/DaoConfig;Lcom/zuiapps/sdk/analytics/greendao/DaoSession;)V
    .registers 3
    .param p1, "config"    # Lde/greenrobot/dao/internal/DaoConfig;
    .param p2, "daoSession"    # Lcom/zuiapps/sdk/analytics/greendao/DaoSession;

    .prologue
    .line 36
    invoke-direct {p0, p1, p2}, Lde/greenrobot/dao/AbstractDao;-><init>(Lde/greenrobot/dao/internal/DaoConfig;Lde/greenrobot/dao/AbstractDaoSession;)V

    .line 37
    return-void
.end method

.method public static createTable(Landroid/database/sqlite/SQLiteDatabase;Z)V
    .registers 5
    .param p0, "db"    # Landroid/database/sqlite/SQLiteDatabase;
    .param p1, "ifNotExists"    # Z

    .prologue
    .line 41
    if-eqz p1, :cond_2d

    const-string v0, "IF NOT EXISTS "

    .line 42
    .local v0, "constraint":Ljava/lang/String;
    :goto_4
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CREATE TABLE "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'ANALYSIS_MODEL\' ("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'TIME\' INTEGER PRIMARY KEY DESC ,"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'LOG_JSON_STR\' TEXT);"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 45
    return-void

    .line 41
    .end local v0    # "constraint":Ljava/lang/String;
    :cond_2d
    const-string v0, ""

    goto :goto_4
.end method

.method public static dropTable(Landroid/database/sqlite/SQLiteDatabase;Z)V
    .registers 5
    .param p0, "db"    # Landroid/database/sqlite/SQLiteDatabase;
    .param p1, "ifExists"    # Z

    .prologue
    .line 49
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "DROP TABLE "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    if-eqz p1, :cond_21

    const-string v1, "IF EXISTS "

    :goto_f
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'ANALYSIS_MODEL\'"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 50
    .local v0, "sql":Ljava/lang/String;
    invoke-virtual {p0, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 51
    return-void

    .line 49
    .end local v0    # "sql":Ljava/lang/String;
    :cond_21
    const-string v1, ""

    goto :goto_f
.end method


# virtual methods
.method protected bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;)V
    .registers 9
    .param p1, "stmt"    # Landroid/database/sqlite/SQLiteStatement;
    .param p2, "entity"    # Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    .prologue
    .line 56
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteStatement;->clearBindings()V

    .line 58
    invoke-virtual {p2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->getTime()Ljava/lang/Long;

    move-result-object v1

    .line 59
    .local v1, "time":Ljava/lang/Long;
    if-eqz v1, :cond_11

    .line 60
    const/4 v2, 0x1

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    invoke-virtual {p1, v2, v4, v5}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    .line 63
    :cond_11
    invoke-virtual {p2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->getLogJsonStr()Ljava/lang/String;

    move-result-object v0

    .line 64
    .local v0, "logJsonStr":Ljava/lang/String;
    if-eqz v0, :cond_1b

    .line 65
    const/4 v2, 0x2

    invoke-virtual {p1, v2, v0}, Landroid/database/sqlite/SQLiteStatement;->bindString(ILjava/lang/String;)V

    .line 67
    :cond_1b
    return-void
.end method

.method protected bridge synthetic bindValues(Landroid/database/sqlite/SQLiteStatement;Ljava/lang/Object;)V
    .registers 3

    .prologue
    .line 17
    check-cast p2, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    invoke-virtual {p0, p1, p2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;)V

    return-void
.end method

.method public getKey(Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;)Ljava/lang/Long;
    .registers 3
    .param p1, "entity"    # Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    .prologue
    .line 102
    if-eqz p1, :cond_7

    .line 103
    invoke-virtual {p1}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->getTime()Ljava/lang/Long;

    move-result-object v0

    .line 105
    :goto_6
    return-object v0

    :cond_7
    const/4 v0, 0x0

    goto :goto_6
.end method

.method public bridge synthetic getKey(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3

    .prologue
    .line 17
    check-cast p1, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    invoke-virtual {p0, p1}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->getKey(Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected isEntityUpdateable()Z
    .registers 2

    .prologue
    .line 112
    const/4 v0, 0x1

    return v0
.end method

.method public readEntity(Landroid/database/Cursor;I)Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;
    .registers 9
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "offset"    # I

    .prologue
    const/4 v2, 0x0

    .line 78
    new-instance v0, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    add-int/lit8 v1, p2, 0x0

    .line 79
    invoke-interface {p1, v1}, Landroid/database/Cursor;->isNull(I)Z

    move-result v1

    if-eqz v1, :cond_18

    move-object v1, v2

    :goto_c
    add-int/lit8 v3, p2, 0x1

    .line 80
    invoke-interface {p1, v3}, Landroid/database/Cursor;->isNull(I)Z

    move-result v3

    if-eqz v3, :cond_23

    :goto_14
    invoke-direct {v0, v1, v2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;-><init>(Ljava/lang/Long;Ljava/lang/String;)V

    .line 82
    .local v0, "entity":Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;
    return-object v0

    .line 79
    .end local v0    # "entity":Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;
    :cond_18
    add-int/lit8 v1, p2, 0x0

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    goto :goto_c

    .line 80
    :cond_23
    add-int/lit8 v2, p2, 0x1

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    goto :goto_14
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 4

    .prologue
    .line 17
    invoke-virtual {p0, p1, p2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->readEntity(Landroid/database/Cursor;I)Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    move-result-object v0

    return-object v0
.end method

.method public readEntity(Landroid/database/Cursor;Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;I)V
    .registers 8
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "entity"    # Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;
    .param p3, "offset"    # I

    .prologue
    const/4 v1, 0x0

    .line 88
    add-int/lit8 v0, p3, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_19

    move-object v0, v1

    :goto_a
    invoke-virtual {p2, v0}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->setTime(Ljava/lang/Long;)V

    .line 89
    add-int/lit8 v0, p3, 0x1

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_24

    :goto_15
    invoke-virtual {p2, v1}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->setLogJsonStr(Ljava/lang/String;)V

    .line 90
    return-void

    .line 88
    :cond_19
    add-int/lit8 v0, p3, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    goto :goto_a

    .line 89
    :cond_24
    add-int/lit8 v0, p3, 0x1

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_15
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;Ljava/lang/Object;I)V
    .registers 4

    .prologue
    .line 17
    check-cast p2, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    invoke-virtual {p0, p1, p2, p3}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->readEntity(Landroid/database/Cursor;Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;I)V

    return-void
.end method

.method public readKey(Landroid/database/Cursor;I)Ljava/lang/Long;
    .registers 5
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "offset"    # I

    .prologue
    .line 72
    add-int/lit8 v0, p2, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 v0, 0x0

    :goto_9
    return-object v0

    :cond_a
    add-int/lit8 v0, p2, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    goto :goto_9
.end method

.method public bridge synthetic readKey(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 4

    .prologue
    .line 17
    invoke-virtual {p0, p1, p2}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->readKey(Landroid/database/Cursor;I)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected updateKeyAfterInsert(Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;J)Ljava/lang/Long;
    .registers 6
    .param p1, "entity"    # Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;
    .param p2, "rowId"    # J

    .prologue
    .line 95
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;->setTime(Ljava/lang/Long;)V

    .line 96
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic updateKeyAfterInsert(Ljava/lang/Object;J)Ljava/lang/Object;
    .registers 6

    .prologue
    .line 17
    check-cast p1, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;

    invoke-virtual {p0, p1, p2, p3}, Lcom/zuiapps/sdk/analytics/greendao/AnalysisModelDao;->updateKeyAfterInsert(Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;J)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method
